//
//  Extention.swift
//  gu-新浪微博
//
//  Created by xiaohui on 16/6/25.
//  Copyright © 2016年 gusheghui. All rights reserved.
//

//2875870754
//App Secret：9508c07327d7abfa366519285ec2c12c

import UIKit
let SwitchRootVcNoti = "SwitchRootVcNoti"
//let APPKEY = "3780725648"
//let APPSECRET = "ecdb48b20416038f439f667a9d145285"
let REDIRECT_URI = "http://www.baidu.com"

let APPKEY = "2875870754"
let APPSECRET = "9508c07327d7abfa366519285ec2c12c"

let SCREENW = UIScreen.mainScreen().bounds.width
let SCREENH = UIScreen.mainScreen().bounds.height

let ThemeColor = UIColor.orangeColor()
func RGB(red:CGFloat,green:CGFloat,blue:CGFloat) ->UIColor{
    
    return UIColor(red: red/255, green: green/255, blue: blue/255, alpha: 1)
}

func RandomColor()->UIColor{
    let r = CGFloat(random()%256)
    let g = CGFloat(random()%256)
    let b = CGFloat(random()%256)
    return RGB(r, green: g, blue: b)
}


